#include"Stack.h"


void Test()
{
    STK list;
    StackInit(&list);//初始化

    //插入
    StackPush(&list,1);
    StackPush(&list,2);
    StackPush(&list,3);
    StackPush(&list,4);
    StackPrint(&list);//打印

    int ret=StackTop(&list);
    printf("top->%d\n",ret-1);

   //StackDestroy(&list);//销毁
}
int main()
{
    Test();
    return 0;
}
